An important aspect of two-number functions is the positioning of the numbers in the stack. To execute an arithmetic function, the numbers should be positioned in the stack in the same way that you would vertically position them on paper. For example:
98 98 98 98
-15 +15 *15 ----
--- --- --- 15
As you can see, the first(or top) number would be in the Y-register, while the second(or bottom) number would be in the X- register. When the mathmatics operation is performed, the stack drops, leaving the result in the X- register. Here is how a subtraction operation is executed in the calculator:
|---------> lost |-------> lost
T t -| |-------> z ---| |-----> y
Z z ---| |-----> y -----| |---> x
Y y -----| |---> x -------| |-> 98
X x -------| |-> 98 --------|-> 98
|
Keys: 98 ENTER
T y ------> y ------|--> y
Z x ------> x ----| |--> y
Y 98 ------> 98 --| |----> x
X 98 |-> 15 --|------> 83
|
Keys: 15 -
The same number positioning would be used to add 15 to 98, multiply 98 by<divide by 15.